
public class Test {
    public static void main(String[] args) throws CloneNotSupportedException {
        Student student1=new Student("zhangsan ");
        Student student2=(Student) student1.clone();
        System.out.println("修改前 :"+student1.m.price);
        System.out.println("修改前 :"+student2.m.price);
        student2.m.price=99.9;
        System.out.println("修改后 :"+student1.m.price);
        System.out.println("修改后 :"+student2.m.price);
    }
}
